package homeWork.Practise;

import java.util.Scanner;

public class TestDay1 {
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
       /* String a = scanner.nextLine();
        String d = scanner.nextLine();
        String e = a.concat(d);
        System.out.println(e);
        System.out.println(a.charAt(5));
        System.out.println(a.indexOf(6));
        String d = "a";
        boolean f = a.startsWith(d);
        System.out.println(f);
        String e = "i";
        boolean g = a.endsWith(e);
        System.out.println(g);
        System.out.println(a.toCharArray());
        String h = "ki";
        System.out.println(a.contains(h));
        System.out.println(a.substring(3,6));
        System.out.println(a.replace(a,d));


        int[][] b = {{1,2,3},{5,6},{1}};
        int[] c = {1,2,3};*/

         /*StringBuffer s1 = new StringBuffer("abcdefghijklmn");
        StringBuffer s2 = new StringBuffer(20);
        s2 = s1.append("     a");
        System.out.println(s2);

      String a = "   abcdefghijklmnopqrstuvwxyz   ";
       String b = "xyz";
       String c = "ijk";
        System.out.println(a.indexOf(c));
        System.out.println(a.trim());
        System.out.println(a.compareTo(c));*/

    }
}
/*class Player{
    private static int sum;
    private Player(){};
    private static Player create(){
        sum = 1;
        Player player = null;
        while(sum <= 11){
            player = new Player();
            System.out.println("你已经成功创建了"+sum+"个对象");
            sum++;
        }
        System.out.println("已成功创建了11个对象");
        return player;
    }

    public static void main(String[] args) {
        Player.create();
        System.out.println(sum);
    }
}*/